home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CHARTP10.ARJ / AGENDA.H < prev    next >
C/C++ Source or Header  |  1992-01-26  |  701b  |  39 lines

  1.  
  2. // Copyright 1992, David Perelman-Hall & Jamshid Afshar
  3.  
  4.  
  5. #ifndef AGENDA_H
  6. #define AGENDA_H
  7.  
  8. #include "edge.h"
  9.  
  10. class Chart;
  11.  
  12. class Agenda {
  13. private:
  14.    Edge_List _edges;
  15. public:
  16.    //constructor
  17.    Agenda() {}
  18.    // copy constructor
  19.    Agenda( const Agenda& agenda )
  20.       : _edges(agenda._edges) {}
  21.  
  22.    //assignment operator
  23.    void operator = ( const Agenda& agenda )
  24.       { _edges = agenda._edges; }
  25.    void add( const Edge& edge, const Chart& chart );
  26.    Edge getNext()
  27.       { return _edges.pop(); }
  28.  
  29.    bool isIn( const Edge& edge ) const
  30.       { return _edges.isMember( edge ); }
  31.    bool isEmpty() const
  32.       { return _edges.isEmpty(); }
  33. };
  34.  
  35. #endif
  36.  
  37.  
  38.  
  39.